package com.class05.j_innerclass.a;

public class Test1 {
    public static void main(String[] args) {
        XiaoMiCar xiaoMiCar = new XiaoMiCar();
        method(xiaoMiCar);
    }

    public static void method(Car car) {
        car.run();
    }

    //    接口定义为返回值类型，而方法体内return的具体实现类
    public Car method1() {
        return new XiaoMiCar();
    }
}
